package com.example.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.entity.Interaction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 互动行为信息表 Mapper 接口
 * </p>
 *
 * @author yzy
 * @since 2025-08-04
 */

public interface InteractionMapper extends BaseMapper<Interaction> {


    Page<Interaction> selectpage(Page<Interaction> page, @Param("ew") QueryWrapper<Interaction> queryWrapper);
    List<Interaction> selectProductIdsByUserIdAndType(@Param("userId") Integer userId, @Param("type") Integer type);

    Interaction selectbyidanduserid(@Param("id") Integer id, @Param("userId") Integer userId, Integer type);

    Interaction selectProductIdsByUserIdAndTypeAndproductId(@Param("userId") Integer userId, @Param("type") Integer type,@Param("productId")Integer productId);

}
